<template>
  <el-container class="flex-center">
    <my-404 v-if="error.statusCode === 404" />
    <div v-else>
      <p>Path: {{error.path}}</p>
      <p>Message: {{error.message}}</p>
    </div>
  </el-container>
</template>

<script>
import My404 from '~/components/error/404'
export default {
  props: ['error'],
  components: {
    My404
  }
}
</script>
